<?php $imagePost = !empty($data->image) ? Helper::renderImage($data->image, 'uploads/resize/Post', ',', true, true) : '/uploads/no_image.gif'; ?>
<div class="post-big" itemscope itemtype="http://schema.org/Blog">
    <div class="nav-bar clearfix">
        <h2><?php echo $data->title; ?></h2>
        <hr />
    </div>
    <a itemprop="url" href="<?php echo Helper::url('/Blog/post/view', array('postAlias' => $data->alias, 'lang' => $lang)); ?>" title="<?php echo $data->title; ?>">
        <img class="body" src="<?php echo $imagePost ?>" alt="<?php echo $data->title; ?>" />
    </a>

    <div class="blog-content" itemprop="description"><?php echo $data->content; ?></div>

    <div class="links">
        <p><a href="<?php echo Helper::url('/Blog/post/index', array('lang' => $lang, 'username' => 'gilla')); ?>" title="Posted by Super Admin">Posted by Super Admin</a> /
            <a href="<?php echo Helper::url('/Blog/post/index', array('lang' => $lang, 'date' => $data->create_date)); ?>" title="<?php echo Helper::getTimeAgo(Helper::changeDateToFormat($data->create_date, 'm-d-Y')); ?>"><?php echo $data->create_date; ?></a> /
            <a href="<?php echo Helper::url('/Blog/post/view', array('postAlias' => $data->alias)); ?>#comments" title="<?php echo $data->countComment; ?> Comments"><?php echo $data->countComment; ?> Comments</a></p>
    </div>
</div>

<!--
<div itemscope itemtype="http://schema.org/Product">
    <a itemprop="url" href="http://thietkeweb3in1.com"><div itemprop="name"><strong>Bui Doan Ngoc Tuan</strong></div>
    </a>
    <div itemprop="description">Công ty thiết kế web3in1.com chuyên cung cấp dịch vụ thiết kế web giá rẻ nhất nhưng đầy đủ tính năng cần thiết cho SEO. Hãy gọi ngay cho tôi, hotline: 09.777.5.7.9.11</div>
    <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
        <span itemprop="ratingValue">8</span> based on <span itemprop="reviewCount">10</span> reviews</div>
    <div itemprop="offers" itemscope itemtype="http://schema.org/Offer"><span itemprop="price">1500000</span><link itemprop="itemCondition" href="http://schema.org/NewCondition" /> New</div></div>
-->

<?php
 /*AddThis Smart Layers BEGIN
 Go to http://www.addthis.com/get/smart-layers to customize */
Helper::cs()->registerScriptFile('//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-508e946e1c42016b', CClientScript::POS_END);
$scriptAddThis = "
    addthis.layers({
        'theme' : 'transparent',
        'share' : {
          'position' : 'left',
          'numPreferredServices' : 5
        },
        'follow' : {
          'services' : []
        },
        'whatsnext' : {},
        'recommended' : {}
    });
";
Helper::cs()->registerScript('scriptAddThis', $scriptAddThis, CClientScript::POS_END);